<?php

/**
 * Current conditions entity
 *
 * @copyright  Copyright (c) 2011 Celebrio Software
 * @package    WeatherApi
 */

namespace Celebrio\WeatherApi\WorldWeatherOnline;

use Celebrio\Core\DummyInit;
use Celebrio\WeatherApi\WorldWeatherOnline\WorldWeatherOnline;

class WWOInit extends DummyInit {

    public function init(array $configuration) {
        parent::init($configuration);
        WorldWeatherOnline::$api_key = $configuration["private_key"];
        
    }

    public function formFields() {
        return array(
            array(
                "name" => "private_key",
                "label" => "Private key:",
                "type" => "text",
                "required" => _('Please provide a client ID.')
            )
        );
    }

}